// 导入封装好的网络请求类工具
import Network from '../../network'
import request from '../../../utils/request'

//井漏复杂情况

//井漏复杂情况-修改数据  
export const LeakageProblemUpdate = (form) => {
    return request({
        url: '/leakageProblem/leakageProblemUpdate',
        method: 'put',
        data: form
    })
}

//井漏复杂情况-删除数据 
export const LeakageProblemDelete = (id) => {
    return request({
        url: `/leakageProblem/leakageProblemDelete/${id}`,
        method: 'delete'
    })
}

//井漏复杂情况-查询数据
export const SelectAllLeakageProblems = (condition, currentPage, pageSize) => {
    return request({
        url: `/leakageProblem/selectAllLeakageProblems/${currentPage}/${pageSize}`,
        method: 'post',
        data: condition
    })
}

//井漏复杂情况-新增数据
export const LeakageProblemAdd = (form) => {
    return request({
        url: '/leakageProblem/leakageProblemAdd',
        method: 'post',
        data: form
    })
}